import 'package:flutter/material.dart';
import 'package:logger/logger.dart';

class ButtonRoute extends StatefulWidget {
  const ButtonRoute({Key? key}) : super(key: key);

  @override
  State<StatefulWidget> createState() => _ButtonRouteState();
}

class _ButtonRouteState extends State<ButtonRoute> {
  final logger = Logger(printer: PrettyPrinter());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("按钮"),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            SizedBox.fromSize(size: const Size.fromHeight(20)),
            ElevatedButton(
                onPressed: () {}, child: const Text("Elevated Button")),
            SizedBox.fromSize(size: const Size.fromHeight(20)),
            TextButton(onPressed: () {}, child: const Text("Text Button")),
            SizedBox.fromSize(size: const Size.fromHeight(20)),
            OutlinedButton(
                onPressed: () {}, child: const Text("Outlined Button")),
            SizedBox.fromSize(size: const Size.fromHeight(20)),
            IconButton(onPressed: () {}, icon: const Icon(Icons.thumb_up)),
            SizedBox.fromSize(size: const Size.fromHeight(20)),
            ElevatedButton.icon(
                onPressed: () {},
                icon: const Icon(Icons.send),
                label: const Text("Elevated Button")),
            SizedBox.fromSize(size: const Size.fromHeight(20)),
            TextButton.icon(
                onPressed: () {},
                icon: const Icon(Icons.send),
                label: const Text("Text Button")),
            SizedBox.fromSize(size: const Size.fromHeight(20)),
            OutlinedButton.icon(
                onPressed: () {},
                icon: const Icon(Icons.send),
                label: const Text("Outlined Button")),
            SizedBox.fromSize(size: const Size.fromHeight(20)),
          ],
        ),
      ),
    );
  }
}
